<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var sum = 0;
        var count = 0;
        for(i = 1; i <= 100; i++){
            if(i%7 == 0){
                sum=sum+i;
                count+=1;
            }
        }
        console.log('100以内7的倍数有'+count+'个');
        console.log('100以内所有7的倍数的和是'+sum);
        
    </script>
</head>
<body>
    
</body>
</html>